
#include "stdafx.h"
#include "myMemManage.h"






using namespace myFn;
//using namespace v2;
using namespace mem;
using namespace std;



void test_myMemManage()
{
	unsigned char buff[512]="123456789";
	//readwrite a(buff,512,10);
	insideEx_ts a(512);


	int iii=10;
	int *iia=&iii;
	int *iib=0;
	int *iic=0;
	for (int iii=1;iii<3;iii++)
	{
		iib = &iii;
	} 

	{
		int iii=6;
		iic = &iii;
	}
//*
	int *iid = &iii;

	{
	string s("dafsdfs");
	string css[4]={"aaaa","bbbb","cccc","dddd"};
	string ss[4]={"Aaaa","Bbbb","Cccc","Dddd"};
	short i;
	int j;
	a<<120;

	a<<"ABC12345678901234567890";
//	a>>i>>j>>s;
//	a>>j>>s;
 
	a.resize(100);

	char cc[10];
	int ii=0;
	const int ic=12;
	a(cc,5,read);
	a(ii,read);
	a<<5;
	a("CDEF");
	a(ic);
	a(120);
    a(ii,write);
	a(ii);
	a(120);
	a(s);
	
//	a(css,4);
//	a(ss,4,write_pre);
//	a(css,4,read_pre);
	//*/	
	}
	return;
}





